main: main.o my_comtrade.o file.o test_data.o M4ToA7.o
	arm-none-linux-gnueabihf-gcc -g -o main main.o my_comtrade.o file.o test_data.o M4ToA7.o -pthread
main.o: main.c
	arm-none-linux-gnueabihf-gcc -g -c main.c
my_comtrade.o:my_comtrade.c
	arm-none-linux-gnueabihf-gcc -g -c my_comtrade.c
file.o: file.c
	arm-none-linux-gnueabihf-gcc -g -c file.c
test_data.o: test_data.c
	arm-none-linux-gnueabihf-gcc -g -c test_data.c
M4ToA7.o: M4ToA7.c
	arm-none-linux-gnueabihf-gcc -g -c M4ToA7.c -pthread




clean:
	rm *.o
	rm main